package redis

import (
	"fmt"
	"github.com/gomodule/redigo/redis"
)

func SADD(key string, value string) {
	c := pool.Get()
	defer c.Close()
	_, err := c.Do("SADD", key, value)
	if err != nil {
		fmt.Print(err)
		return
	}
}

func SISMEMBER(key string, value string) int {
	c := pool.Get()
	defer c.Close()
	r, err := redis.Int(c.Do("SISMEMBER", key, value))
	if err != nil {
		fmt.Print(err)
		return 0
	}
	return r
}
